<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${category} | ${section} | 育儿百科 | 万应教育</title>
<jsp:include page="/WEB-INF/inc/meta.jsp"/>
<link href='<onein:url value="/styles/all.css"/>' type="text/css" rel="stylesheet" />
<script src="<onein:url value="/scripts/My97DatePicker/WdatePicker.js"/>" type="text/javascript"></script>
</head>

<body>
	<jsp:include page="/WEB-INF/inc/header.jsp"/>
    <jsp:include page="/WEB-INF/inc/menu.jsp"/>
    <div id="bodyWrap">   
      <jsp:include page="/WEB-INF/inc/learnmenu.jsp"/>
      <jsp:include page="/WEB-INF/inc/learnsidebar.jsp"/>
            
     <div class="rightWrap">
        <jsp:include page="/WEB-INF/inc/learnSearchForm.jsp"/>
     <c:if test="${empty perpageVO}">
        <div class="contentBody"><br/>抱歉，没有找到相关文章! </div>
     </c:if>
     <c:if test="${!empty perpageVO}">        
     <div>
        <div class="commonContentTopWrap2"><span><a></a></span></div>
          <div class="commonContentMidWrap2">
            <div class="searchBody">
               <div class="searchTitle">分类<span class="searchword">${section} / <c:out value="${category}"/></span>的相关文章：</div>
               <ul class="textListBig ml11">
                 <c:forEach var="content" items="${contents}">
                    <li><a href="<onein:url value="/learn/content/${content.id}.jhtml" />" target="_blank" >${content.title}</a></li>
                 </c:forEach>
               </ul>
            </div>
           </div> 
           <div class="commonContentBottomWrap2"><span><a></a></span></div>
            
            <c:if test="${perpageVO.totalPages > 0}">
	        <br/>
	        <div class="content-page">
	            <span class="page-ch">共${perpageVO.totalPages}页</span>
	            <c:if test="${empty perpageVO.firstPage}">
	                <span class="page-ch">上一页</span>
	            </c:if>
	            <c:if test="${!empty perpageVO.firstPage}">
	                <a class="page-ch" href="<onein:url value="${perpageVO.currPage - 1}" />">上一页</a>
	            </c:if>
	            <c:forEach var = "itemPage" begin="1" end = "${perpageVO.totalPages}">
	                <c:if test="${itemPage == perpageVO.currPage}" >
	                    <span class="page_now">${perpageVO.currPage}</span>
	                </c:if>
	                <c:if test="${itemPage != perpageVO.currPage}" >
	                    <a class="page-en" href="<onein:url value="${itemPage}" />">${itemPage}</a>
	                </c:if>
	            </c:forEach>
	            <c:if test="${empty perpageVO.lastPage}">
	                <span class="page-ch">下一页</span>
	            </c:if>
	            <c:if test="${!empty perpageVO.lastPage}">
	                <a class="page-ch" href="<onein:url value="${perpageVO.currPage + 1}" />">下一页</a>
	            </c:if>
	        </div>
	        </c:if>
 	   </div>       
     </c:if> 
    </div>
    
    <jsp:include page="/WEB-INF/inc/footer.jsp"/>
</div>
</body>
</html>